#pragma once

#include "ZNetworkBuffer.h"

namespace	Z	{

//------------------------------------------------------------------------------------------------------------------------
class	_ZNetworkApi	NetworkSendBuffer
	:	public NetworkBuffer
{
public:
	NetworkSendBuffer();
	virtual	~NetworkSendBuffer();
	size_t	getWsaBufCount()	const;
	void	getWsaBufs(WSABUF* wsaBufs, size_t wsaBufCount)	const;
	void	onComplete(size_t bytesTransferred);
	bool	add(Stream* pStream)		{
		mStreams.push_back(pStream);
		return mStreams.size() == 1;
	}
};

}